package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.SysMessage;
import com.yunshang.shoppingmall.mapper.SysMessageMapper;
import com.yunshang.shoppingmall.service.SysMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysMessageService")
public class SysMessageServiceImpl implements SysMessageService{

    @Autowired
    SysMessageMapper sysMessageMapper;

    @Override
    public int deleteByPrimaryKey(Integer sId) {
        return 0;
    }

    @Override
    public int insert(SysMessage record) {
        return 0;
    }

    @Override
    public int insertSelective(SysMessage record) {
        return 0;
    }

    @Override
    public SysMessage selectByPrimaryKey(Integer sId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(SysMessage record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(SysMessage record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(SysMessage record) {
        return 0;
    }

    @Override
    public List<SysMessage> selectSysMessageBySign(String sSign) {
        return sysMessageMapper.selectSysMessageBySign( sSign);
    }

    @Override
    public List<SysMessage> selectActiveMessageBySign(String sSign) {
        return sysMessageMapper.selectActiveMessageBySign( sSign);
    }

    @Override
    public List<SysMessage> selectMessages() {
        return sysMessageMapper.selectMessages();
    }

    @Override
    public int updateMessageStateBySign(SysMessage sysMessage) {
        return sysMessageMapper.updateMessageStateBySign(sysMessage);
    }

    @Override
    public Integer selectMessageCount(String sSign) {
        return sysMessageMapper.selectMessageCount(sSign);
    }
}
